package com.cgwx.systemservice.service;

import com.cgwx.systemservice.entity.sys.SysUserRole;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cgwx.systemservice.entity.vo.AssginRoleVo;

import java.util.Map;

/**
 * <p>
 * 用户角色 服务类
 * </p>
 *
 * @author GaoWei
 * @since 2023-10-12
 */
public interface SysUserRoleService extends IService<SysUserRole> {

//    根据用户ID获取用户角色
    Map<String, Object> getRolesByUserId(Long userId);

//    为用户分配角色
    void doAssign(AssginRoleVo assginRoleVo);
}
